package socdev.mobile;

import org.json.JSONObject;

import android.util.Log;
import android.widget.ArrayAdapter;

public class Task{

	String text;
	String author;
	String name;
	
	public Task(String name, String author, String text) {
		this.name = name;
		this.author = author;
		this.text = text;
	}
	
	
	public JSONObject getJson(){
		JSONObject obj = new JSONObject();
		try{
			obj.put("name", name);
			obj.put("text", text);
		} catch (Exception ex) {
			
			Log.e(Task.class.toString(), "Failed to create json");
		}
		return obj;
	}
}
